import moment from 'moment'

/**
 * Upper case first char
 * @param {String} string
 */
export default function asDate(timestrap) {
  return moment(timestrap * 1000)
    .locale('zh-cn')
    .format('LL')
}
